home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / isha.z / isha
Encoding:
Text File  |  2002-10-03  |  2.4 KB  |  56 lines

  1. ISHA(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHAA, IIIISSHHAA, JJIISSHHAA, KKIISSHHAA - Performs arithmetic shift on an integer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IISSHHAA (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  9.      IIIISSHHAA (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  10.      JJIISSHHAA (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  11.      KKIISSHHAA (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  12.  
  13. IIMMPPLLEEMMEENNTTAATTIIOONN
  14.      UNICOS, UNICOS/mk, IRIX systems
  15.  
  16.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  17.  
  18. SSTTAANNDDAARRDDSS
  19.      Fortran extensions
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      The IISSHHAA, IIIISSHHAA, JJIISSHHAA, KKIISSHHAA intrinsic functions perform an
  23.      arithmetic shift of an integer, left or right, by a specified number
  24.      of bits.  This function accepts the following arguments:
  25.  
  26.      _i         Must be of type integer.  For IIIISSHHAA, must be of type integer
  27.                (KIND=2).  For JJIISSHHAA, must be of type integer (KIND=4).  For
  28.                KKIISSHHAA, must be of type integer (KIND=8).  This is the value
  29.                to be shifted.
  30.  
  31.      _s_h_i_f_t     Must be of the same type and kind type parameter as _a.  This
  32.                is the direction and distance of the shift.
  33.  
  34.                Positive shifts are left, toward the most significant bit.
  35.                Negative shifts are right, toward the least significant bit.
  36.                If _s_h_i_f_t is zero, no shift is performed.
  37.  
  38.      These elemental intrinsic functions.  The names of these intrinsics
  39.      cannot be passed as arguments.
  40.  
  41. RREETTUURRNN VVAALLUUEESS
  42.      The result type and type parameter are the same as _i.  The result is
  43.      equal to _i shifted arithmetically by _s_h_i_f_t bits.
  44.  
  45.      Bits shifted out, from the left or from the right, are lost.  Zeros
  46.      are shifted in for a left shift.  The sign bit is extended for a right
  47.      shift.
  48.  
  49.      The kind of the integer is important because the sign varies among
  50.      integer representations.  If you want to shift a 1-byte or 2-byte
  51.      argument, declare it as KIND=1 or KIND=2.
  52.  
  53. SSEEEE AALLSSOO
  54.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  55.      man page.
  56.